import request from '@/utils/request'
import {getToken} from "../../utils/auth";

export function FeatureExtraction(data) {
  return request({
    url: '/bearingData/feature/featureExtraction',
    method: 'post',
    data: data,
    responseType: 'blob',
        headers: {
      'Authorization': 'Bearer ' + getToken()
    }
  })
}

export function FeatureSelection(data) {
  return request({
    url: '/bearingData/feature/featureSelection',
    method: 'post',
    data: data,
    responseType: 'blob',
        headers: {
      'Authorization': 'Bearer ' + getToken()
    }
  })
}

